package cording.example.addressList.Service;

import cording.example.addressList.mybatis.entity.Contact;

import java.util.List;


public interface ContactService {
    public List<Contact> findAllContacts();
    public Contact findContactById(Long id);
    public void deleteContact(Long id);
    public void saveContact(Contact contact);

    public void addContact(Contact contact);

    List<Contact> findByName(String name);

    List<Contact> findByPhoneNumber(String phoneNumber);

    List<Contact> getAllContacts();
}
